<?php
use yii\bootstrap\Nav;
?>

<?= Nav::widget(
[
    'options' => [
        'class' => 'nav-tabs',
        'style' => 'margin-bottom: 15px',
    ],
    'items' => [
        [
            'label' => 'О проекте',
            'url' =>  ['/project/view', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Пожертвования',
            'url' =>  ['/project/view-donation-contract', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Реестр договоров',
            'url' =>  ['/project/view-contracts', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Упоминания в СМИ',
            'url' =>  ['/project/view-smi', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Партнёры',
            'url' =>  ['/project/view-partners', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Файлы',
            'url' =>  ['/project/view-documents', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Фотографии',
            'url' =>  ['/project/view-photos', 'id' => $this->params['id']],
        ],
        [
            'label' => 'Редактировать',
            'visible' => \Yii::$app->user->can('updateProject'),
            'url' => ['project/update', 'id' => $this->params['id']],
        ],
    ],
]
) ?>

   